import collections
class TwoSum(object):

    def __init__(self):
        self.s = {}

    def add(self, number):
        """
        :type number: int
        :rtype: None
        """
        if number not in self.s:
            self.s[number] = 1
        else:
            self.s[number] += 1


    def find(self, value):
        """
        :type value: int
        :rtype: bool
        """
        for key in self.s:
            if self.s[value - key] in self.s:
                if value - key == key:
                    if self.s[key] >= 2:
                        return True
                    else:
                        return False
                else:
                    return True